package com.tddx.activiti.business.sys.controller.staticData;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tddx.activiti.utils.InitStaticData;

@Controller
@RequestMapping("sys/staticData")
public class StaticDataController {
	
	@Autowired private InitStaticData initStaticData;
	
	@RequestMapping("refresh")
	@ResponseBody
	public String refreshStaticData(){
		initStaticData.init();
		return "success";
	}
	
	
}
